package org.js.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.js.student.mapper.FollowFormMapper;
import org.js.student.domain.FollowForm;
import org.js.student.service.IFollowFormService;

/**
 * 关注管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-06
 */
@Service
public class FollowFormServiceImpl implements IFollowFormService 
{
    @Autowired
    private FollowFormMapper followFormMapper;

    /**
     * 查询关注管理
     * 
     * @param id 关注管理主键
     * @return 关注管理
     */
    @Override
    public FollowForm selectFollowFormById(Long id)
    {
        return followFormMapper.selectFollowFormById(id);
    }

    /**
     * 查询关注管理列表
     * 
     * @param followForm 关注管理
     * @return 关注管理
     */
    @Override
    public List<FollowForm> selectFollowFormList(FollowForm followForm)
    {
        return followFormMapper.selectFollowFormList(followForm);
    }

    /**
     * 新增关注管理
     * 
     * @param followForm 关注管理
     * @return 结果
     */
    @Override
    public int insertFollowForm(FollowForm followForm)
    {
        return followFormMapper.insertFollowForm(followForm);
    }

    /**
     * 修改关注管理
     * 
     * @param followForm 关注管理
     * @return 结果
     */
    @Override
    public int updateFollowForm(FollowForm followForm)
    {
        return followFormMapper.updateFollowForm(followForm);
    }

    /**
     * 批量删除关注管理
     * 
     * @param ids 需要删除的关注管理主键
     * @return 结果
     */
    @Override
    public int deleteFollowFormByIds(Long[] ids)
    {
        return followFormMapper.deleteFollowFormByIds(ids);
    }

    /**
     * 删除关注管理信息
     * 
     * @param id 关注管理主键
     * @return 结果
     */
    @Override
    public int deleteFollowFormById(Long id)
    {
        return followFormMapper.deleteFollowFormById(id);
    }
}
